home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17128 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: ix.netcom.com!als-il2-02
  2. From: stefmit@ix.netcom.com
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Pause or wait command?
  5. Date: 13 Apr 1996 21:56:42 GMT
  6. Organization: Netcom
  7. Message-ID: <4kp7uq$s6p@cloner2.ix.netcom.com>
  8. References: <4kcpk4$mbo@daisy.flex.com.au> <316ECBF0.79FF@aai.arco.com>
  9. NNTP-Posting-Host: als-il2-02.ix.netcom.com
  10. X-NETCOM-Date: Sat Apr 13  2:56:42 PM PDT 1996
  11. X-Newsreader: News Xpress Version 1.0 Beta #4
  12.  
  13. In article <316ECBF0.79FF@aai.arco.com>,
  14.    Brian Leach <lasbfl@aai.arco.com> wrote:
  15. >Tony L wrote:
  16. >> 
  17. >> Hi all,
  18. >> 
  19. >> Could someone please tell me how I can pause a program, or even a
  20. >> timed pause?
  21. >> 
  22. >> I have a program that I would like it to display a message, but only
  23. >> for a few seconds and then carry on without intervention from the
  24. >> user.
  25. >> 
  26. >> Thank you very much for your time....
  27. >
  28. >In UNIX, you use a combination of signal, pause, and alarm.
  29. >
  30. >Check out the book UNIX System Programming by Keith Haviland,
  31. >Ben Salamam, Addison Wesley, ISBN 0-201-12919-1, Page 139 for 
  32. >a complete example.
  33. >
  34. >-Brian :-)
  35. >lasbfl@aai.arco.com
  36.  
  37.  
  38. For DOS you can use the "void sleep (unsigned seconds)" function, to be found 
  39. in dos.h. I think works for UNIX, Win32 and OS/2 also.
  40.